// 配置动态路由：

export const AsyncComponentRoutes = [
  {
    path: '/layouts',
    name: 'Layouts',
    component: () => import('@/layouts/index.vue'),
    redirect: '/layouts/home',
    meta: {
      userId: [0, 1, 2]
    },
    children: [
      {
        path: 'home',
        name: 'Home',
        component: () => import('@/views/home/index.vue'),
        meta: {
          title: '首页',
          userId: [0, 1]
        },
      },
      {
        path: 'pdf',
        name: 'PDF',
        component: () => import('@/views/pdf/index.vue'),
        meta: {
          title: 'PDF',
          userId: [0, 2]
        },
      },
      {
        path: 'charts',
        name: 'Charts',
        component: () => import('@/views/charts/index.vue'),
        meta: {
          title: '图表',
          userId: [0]
        }
      }
    ]
  }
]
